﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.CustomUtils {
    public class Utils {

        public static byte CalculateAge(DateTime birthdate) {
            byte years = (byte)(DateTime.Now.Year - birthdate.Year);
            //if (DateTime.Now.Month < birthdate.Month || (DateTime.Now.Month == birthdate.Month && DateTime.Now.Day < birthdate.Day))
                 //years--;

            return years;
        }
    }
}
